// 统一管理 token
// let key = 'ithm'
// let refresh_tokne = 'refresh'
// 增
export const setToken = (key,token)=>{
   localStorage.setItem(key,token)
}
// export const setRefreshToken = (token)=>{
//   return localStorage.setItem(refresh_tokne,token)
// }
// 拿
export function getToken(key){
  return localStorage.getItem(key)
}
// export function getRefreshToken(){
//   return localStorage.getItem(refresh_tokne)
// }
// 删
export function removeToken(key){
  if(key){
    localStorage.removeItem(key)
  }else{
    localStorage.clear()
  }
}